Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design refactoring #817

Merged
merged 3 commits into from
Apr 1, 2022

Conversation

ghost
Copy link

@ghost ghost commented Mar 23, 2022

Refactoring name: Extract class
Location: openhtmltopdf-core
Package: com.openhtmltopdf.layout
Class: CounterFunction
Extracted a new class from CounterFunction and moved two methods toRoman and toLatin. The refactoring reduces the size of the class and moves methods for cohesiveness.

Refactoring name: Pull-up method
Location: openhtmltopdf-core
Package: com.openhtmltopdf.context
Class: ContentFunctionFactory
Introduced a new layer of abstraction for improving code reusability. Moved isStatic method from subclasses to the intermediate abstract layer.

Refactoring name: Move method
Location: openhtmltopdf-core
Package: com.openhtmltopdf.css.style.derived
Class: FSLinearGradient
Extracted a new class a moved methods deg2rad, isLengthOrPercentage, getStopsStartIndex, get100PercentDefaultStopLength, and calculateAngle.

Best regards,
Aditya

@danfickle danfickle merged commit 780ba56 into danfickle:open-dev-v1 Apr 1, 2022
@danfickle
Copy link
Owner

Thanks again @ad619659!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants